#include <bits/stdc++.h>
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
using i128 = __int128;
const int N = 1e6 + 5;

void solve() {
    int n;
    cin >> n;
    if (n == 1) {
        cout << "Fluttershy" << endl;
        return;
    }
    if (n == 2) {
        cout << "Pinkie Pie" << endl;
        return;
    }
    if (n == 3) {
        cout << "Pinkie Pie" << endl;
        return;
    }
    if (n % 4 == 0 || n % 4 == 1)
        cout << "Fluttershy" << endl;
    else
        cout << "Pinkie Pie" << endl;

    return;
}

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(nullptr);
    int t;
    cin >> t;
    while (t--) solve();

    return 0;
}